﻿export default {
  // 登录成功
  isLogin (context, loginInfo) {
    context.commit('isLogin', loginInfo)
  },
  // 退出登录
  logout (context) {
    context.commit('logout')
  },
  // 路由切换时的loading状态
  changRouteLoading (context, payload) {
    context.commit('routeLoading', payload)
  },
  // 避免出现多次错误提示（请求出错时
  changeRequestCounts (context, payload) {
    context.commit('changeRequestCounts', payload)
  },
  // 路由切换时的loading文字
  changeLoadingText (context, payload) {
    context.commit('changeLoadingText', payload)
  },
  // 左边菜单的收起和展开的状态
  changSubmenuCollapse (context, payload) {
    context.commit('changSubmenuCollapse', payload)
  },
  // 切换皮肤的方法
  changeCurrentTheme (context, payload) {
    context.commit('changeCurrentTheme', payload)
  },
  // 路由切换
  changeCurrentRoute (context, payload) {
    context.commit('changeCurrentRoute', payload)
  },
  // 更新echart的尺寸
  updateSizeMethod (context, payload) {
    context.commit('updateSizeMethod', payload)
  },
  setHttpEncrypt (context, payload) {
    context.commit('setHttpEncrypt', payload)
  },
  setShareKey (context, payload) {
    context.commit('setShareKey', payload)
  },
  setCommonData (context, payload) {
    context.commit('setCommonData', payload)
  }
}
